vcFocusModeManager

Represents container for focus mode objects that is used to start Focus Mode feature. Content of the focus set will be kept focused, everything that is not included in the set will become unfocused when focus mode is started.

See in: Overview

Module: vcCore

Parent: vcObject

Children -

Referenced by: vcWorld.FocusModeManager

Properties

Learn how to use properties here. The properties are also inherited from the parent class.

NameTypeAccessDescription
DynamicComponentFocusSettingvcFocusModeDynamicSettingRWGets or sets how to display dynamic components during simulation while focus mode is active.
FocusSetslistRGets the focus sets that this manager contains.
IsFocusModeActiveBooleanRGets a value indicating whether focus mode is currently active or not.
UnfocusedOpacityRealRWGets or sets opacity value for the unfocused objects.
See more
Value can be between 0 and 1 where 0 meaning that objects are not visible and 1 no transparency at all.

Methods

Learn how to use methods here. The methods are also inherited from the parent class.

NameReturn TypeParametersDescription
createFocusSetvcFocusSetList[vcNode] nodeListCreates a new instance of vcFocusSet with given vcNodes. And adds its to the current vcFocusModeManagerInstance.
See more
Raises event ObjectSetAdded in case of success.

Parameters:
nodeList (List[vcNode]): Nodes to be used for the vcFocusSet creation. Will only include supported node types.

Returns:
vcFocusSet: Created set or None in case creation failed.
removeFocusSetBooleanvcFocusSet focusSetRemoves given vcFocusSet from current FocusModeManager instance.
See more
Raises event ObjectSetRemoved in case of success.

Parameters:
focusSet (vcFocusSet): Set to be removed.

Returns:
bool: True if was removed, False otherwise.
startFocusModeNoneList[vcFocusSet] focusSetsStarts focus mode for the given list of vcFocusSet.
See more
Raises event FocusModeStarted in case of success.

Parameters:
focusSets (List[vcFocusSet]): Focus sets to use for focusing.
stopFocusModeNoneNoneStops focus mode.
Raises event FocusModeStopped in case of success.

Events

Learn how to use events here. The events are also inherited from the parent class.

NameParametersDescription
FocusModeStartedNoneTriggered when Focus Mode started.
FocusModeStoppedNoneTriggered when Focus Mode stopped.
FocusSetAddedNoneTriggered when new vcFocusSet added to vcFocusModeManager.
FocusSetRemovedNoneTriggered when vcFocusSet removed from vcFocusModeManager.